package cn.lvji.springboot.learn3.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author zhouzx
 */
@RestController
public class TestController {

    @GetMapping("/json/test")
    public Long test() {
        return 111L;
    }

    @GetMapping("/test/req")
    public String testR(HttpServletRequest req, HttpServletResponse res) {
        return "s";
    }
}
